def sum_of_multiples(n, limit):  
    multiples = []  
    total_sum = 0  
    for i in range(n, limit + 1, n):  
        multiples.append(i)  
        total_sum += i  
    return multiples, total_sum  

numbers = [3, 7, 13, 19, 23, 29]  
limit = 10000  

for num in numbers:  
    multiples, total_sum = sum_of_multiples(num, limit)  
    print(f"{num}的倍数有：{multiples[:10]}...（共{len(multiples)}个）")
    print(f"{num}的倍数的和为：{total_sum}")  
    print("")